
package controler;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import view.MenuPrincipal;

public class Main {

    public static void main(String[] args) {
   
        try {  
            for ( UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels() ) {  
                if ( "Nimbus".equals( info.getName() ) ) {  
                    UIManager.setLookAndFeel( info.getClassName() );  
                    break;  
                }  
            }  
        } catch ( UnsupportedLookAndFeelException exc ) {  
            exc.printStackTrace();  
        } catch ( ClassNotFoundException exc ) {  
            exc.printStackTrace();  
        } catch ( InstantiationException exc ) {  
            exc.printStackTrace();  
        } catch ( IllegalAccessException exc ) {  
            exc.printStackTrace();  
        }  
      
        // restante do método main aqui...  
      
     
        new Main().iniciar();
        
    }

    public void iniciar() {
        MenuPrincipal menuPrincipal = new MenuPrincipal();
        menuPrincipal.setVisible(true);
        
         
    
    
    }
}
